// +----------------------------------------------------------------------
// | 加梯 [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.lift.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: 加梯 Team <admin@lift.com>
// +----------------------------------------------------------------------

import request from "@/libs/request";
import qs from "query-string";

/**
 * @description 设置 系统设置 应用设置头部
 * @param {Object} param data {Object} 传值参数 type类型
 */
export function headerListApi(data) {
  return request({
    url: "setting/config/header_basics",
    method: "get",
    params: data
  });
}

/**
 * @description 设置 系统设置 应用设置 编辑表单
 * @param {Object} param data {Object} 传值参数 type类型
 */
export function dataFromApi(data, url) {
  return request({
    url: url,
    method: "get",
    params: data
  });
}

/**
 * @description 设置 短信设置 列表
 * @param {Object} param params {Object} 传值参数
 */
export function tempListApi(params) {
  return request({
    url: params.url,
    method: "get",
    params: params.data
  });
}

/**
 * @description 设置 短信设置 申请模板表单
 * @param {Object} param data {Object} 传值参数 type类型
 */
export function tempCreateApi() {
  return request({
    url: "notify/sms/temp/create",
    method: "get"
  });
}

/**
 * @description 设置 短信设置 登录
 * @param {Object} param data {Object} 传值参数
 */
export function configApi(data) {
  return request({
    url: "serve/login",
    method: "post",
    data
  });
}

/**
 * @description 设置 短信 修改密码
 */
export function serveModifyApi(data) {
  return request({
    url: "serve/modify",
    method: "post",
    data
  });
}

/**
 * @description 设置 短信 修改手机号
 */
export function updateHoneApi(data) {
  return request({
    url: "serve/update_phone",
    method: "post",
    data
  });
}

/**
 * @description 设置 短信设置 修改账户密码
 * @param {Object} param data {Object} 传值参数
 */
// export function configApi (data) {
//     return request({
//         url: 'notify/sms/config',
//         method: 'post',
//         data
//     });
// }

/**
 * @description 设置 短信设置 发送验证码
 * @param {Object} param data {Object} 传值参数
 */
export function captchaApi(data) {
  return request({
    url: "serve/captcha",
    method: "post",
    data
  });
}

/**
 * @description 验证验证码
 * @param {Object} param data {Object} 传值参数
 */
export function checkCaptchaApi(data) {
  return request({
    url: "serve/checkCode",
    method: "post",
    data
  });
}

/**
 * @description 设置 短信设置 注册
 * @param {Object} param data {Object} 传值参数
 */
export function registerApi(data) {
  return request({
    url: "serve/register",
    method: "post",
    data
  });
}

/**
 * @description 设置 短信设置 短信剩余条数
 */
export function smsNumberApi() {
  return request({
    url: "notify/sms/number",
    method: "get"
  });
}

/**
 * @description 设置 短信设置 平台用户信息
 */
export function serveInfoApi() {
  return request({
    url: "serve/info",
    method: "get"
  });
}

/**
 * @description 修改短信签名
 */
export function serveSign(data) {
  return request({
    url: "serve/sms/sign",
    method: "PUT",
    data
  });
}

/**
 * 客服登录
 */
export function kefuLogin(id) {
  return request({
    url: `app/wechat/kefu/login/${id}`,
    method: "get"
  });
}

/**
 * 客服话术列表
 */
export function wechatSpeechcraft(data) {
  return request({
    url: `app/wechat/speechcraft`,
    method: "get",
    params: data
  });
}

/**
 * 客服话术编辑
 */
export function speechcraftEdit(id) {
  return request({
    url: `app/wechat/speechcraft/${id}/edit`,
    method: "get"
  });
}

/**
 * 客服话术添加
 */
export function speechcraftCreate() {
  return request({
    url: `app/wechat/speechcraft/create`,
    method: "get"
  });
}

/**
 * 客服反馈
 */
export function kefuFeedBack(params) {
  return request({
    url: `app/feedback`,
    method: "get",
    params
  });
}

/**
 * 客服反馈
 */
export function kefuFeedBackEdit(id) {
  return request({
    url: `app/feedback/${id}/edit`,
    method: "get"
  });
}

/**
 * @description 设置 短信 物流公司
 */
export function exportAllApi() {
  return request({
    url: "serve/export_all",
    method: "get"
  });
}

/**
 * 是否开通电子面单
 */
// export function serveDumpOpen () {
//     return request({
//         url: `serve/dump_open`,
//         method: 'get'
//     });
// }

/**
 * 物流开通
 */
export function serveOpen() {
  return request({
    url: `serve/open`,
    method: "get"
  });
}

/**
 * @description 设置 短信 物流公司面板
 */
export function exportTempApi(params) {
  return request({
    url: "serve/export_temp",
    method: "get",
    params
  });
}

/**
 * @description 设置 短信 2= 电子面单，3 = 物流查询 列表
 */
export function serveRecordListApi(params) {
  return request({
    url: "serve/record",
    method: "get",
    params
  });
}

/**
 * @description 设置 短信 开通其他服务
 */
export function serveOpnOtherApi(params) {
  return request({
    url: "serve/open",
    method: "get",
    params
  });
}

/**
 * @description 设置 短信 开通电子面单
 */
export function serveOpnExpressApi(data) {
  return request({
    url: "serve/opn_express",
    method: "post",
    data
  });
}

/**
 * @description 设置 短信 开通短信服务
 */
export function serveSmsOpenApi(params) {
  return request({
    url: "serve/sms/open",
    method: "get",
    params
  });
}

/**
 * @description 设置 短信设置 支付套餐
 */
export function smsPriceApi(params) {
  return request({
    url: "serve/meal_list",
    method: "get",
    params
  });
}

/**
 * @description 设置 短信设置 支付码
 * @param {Object} param data {Object} 传值参数
 */
export function payCodeApi(data) {
  return request({
    url: "serve/pay_meal",
    method: "post",
    data
  });
}

/**
 * @description 设置 短信设置 发送记录
 */
export function smsRecordApi(params) {
  return request({
    url: "notify/sms/record",
    method: "get",
    params
  });
}

/**
 * @description 门店设置 详情
 */
export function storeApi() {
  return request({
    url: "merchant/store",
    method: "GET"
  });
}

/**
 * @description 门店设置 获取地图key
 */
export function keyApi() {
  return request({
    url: "merchant/store/address",
    method: "GET"
  });
}

/**
 * @description 门店设置 提交数据,
 * @param {Object} param data {Object} 传值参数
 */
export function storeAddApi(data) {
  return request({
    url: `merchant/store/${data.id}`,
    method: "POST",
    data
  });
}

/**
 * @description 设置 物流公司 列表
 * @param {Object} param data {Object} 传值参数
 */
export function freightListApi(params) {
  return request({
    url: "freight/express",
    method: "get",
    params
  });
}

/**
 * @description 设置 物流公司 新增表单
 */
export function freightCreateApi() {
  return request({
    url: "/freight/express/create",
    method: "get"
  });
}

/**
 * @description 设置 物流公司 编辑表单
 * @param {Number} param id {Number} 物流公司id
 */
export function freightEditApi(id) {
  return request({
    url: `freight/express/${id}/edit`,
    method: "get"
  });
}

/**
 * @description 设置 物流公司 修改状态
 * @param {Number} param id {Number} 物流公司id
 */
export function freightStatusApi(data) {
  return request({
    url: `freight/express/set_status/${data.id}/${data.status}`,
    method: "PUT"
  });
}

/**
 * @description 同步物流快递公司
 */
export function freightSyncExpressApi() {
  return request({
    url: `freight/express/sync_express`,
    method: "get"
  });
}

/**
 * @description 话术分类
 */
export function speechcraftcate() {
  return request({
    url: `app/wechat/speechcraftcate`,
    method: "get"
  });
}

/**
 * @description 渠道码分类
 */
export function wechatQrcodeTree() {
  return request({
    url: `app/wechat_qrcode/cate/list`,
    method: "get"
  });
}

/**
 * @description 获取创建分类表单
 */
export function speechcraftcateCreate() {
  return request({
    url: `app/wechat/speechcraftcate/create`,
    method: "get"
  });
}

/**
 * @description 获取渠道码创建、编辑分类表单
 */
export function wechatQrcodeCreate(id) {
  return request({
    url: `app/wechat_qrcode/cate/create/${id}`,
    method: "get"
  });
}

/**
 * @description 修改话术分类(获取表单)
 */
export function speechcraftcateEdit(id) {
  return request({
    url: `app/wechat/speechcraftcate/${id}/edit`,
    method: "get"
  });
}

/**
 * @description 设置 身份管理 列表
 * @param {Number} param id {Number} 物流公司id
 */
export function roleListApi(params) {
  return request({
    url: `setting/role`,
    method: "GET",
    params
  });
}

/**
 * @description 获取渠道码列表
 * @param {Number} param id {Number} 物流公司id
 */
export function wechatQrcodeList(params) {
  return request({
    url: `app/wechat_qrcode/list`,
    method: "GET",
    params
  });
}

/**
 * @description 设置 身份管理 修改状态
 * @param {Object} param data {Object} 传值参数
 */
export function roleSetStatusApi(data) {
  return request({
    url: `setting/role/set_status/${data.id}/${data.status}`,
    method: "PUT"
  });
}

/**
 * @description 设置 身份管理 ==新增 编辑
 * @param {Object} param data {Object} 传值参数
 */
export function roleCreatApi(data) {
  return request({
    // url: `setting/role/${data.id}`,
    url: `asysRole/insertasysRole`,
    method: "post",
    data
  });
}

/**
 * @description 设置 身份管理 ==新增 编辑
 * @param {Object} param data {Object} 传值参数
 */
export function roleUpdateApi(data) {
  return request({
    // url: `setting/role/${data.id}`,
    url: `asysRole/editasysRole`,
    method: "post",
    data
  });
}

/**
 * @description 设置 身份管理 ==详情
 * @param {Number} param id {Number} 身份管理id
 */
export function roleInfoApi(id) {
  return request({
    url: `setting/role/${id}/edit`,
    method: "get"
  });
}

/**
 * @description 设置 身份管理 ==权限列表
 */
export function menusListApi() {
  return request({
    url: `setting/role/create`,
    method: "get"
  });
  // return '{{"menus":[{"pid":0,"id":7,"title":"主页","children":[{"pid":7,"id":369,"title":"首页交易额排行","children":[]},{"pid":7,"id":368,"title":"首页用户图表","children":[]},{"pid":7,"id":367,"title":"首页订单图表","children":[]},{"pid":7,"id":366,"title":"首页统计数据","children":[]}],"expand":true},{"pid":0,"id":1,"title":"商品","children":[{"pid":1,"id":99,"title":"商品规格","children":[{"pid":99,"id":580,"title":"附加权限","children":[{"pid":580,"id":197,"title":"删除规则","children":[]},{"pid":580,"id":196,"title":"规则详情","children":[]},{"pid":580,"id":195,"title":"保存修改规则","children":[]}],"expand":true},{"pid":99,"id":194,"title":"属性规则列表","children":[]}],"expand":true},{"pid":1,"id":22,"title":"产品添加","children":[{"pid":22,"id":685,"title":"上传商品视频","children":[]},{"pid":22,"id":620,"title":"商品详情","children":[]},{"pid":22,"id":191,"title":"生成属性","children":[]},{"pid":22,"id":187,"title":"运费模板列表","children":[]},{"pid":22,"id":186,"title":"获取属性模板列表","children":[]},{"pid":22,"id":105,"title":"添加产品保存","children":[]}],"expand":true},{"pid":1,"id":3,"title":"商品分类","children":[{"pid":3,"id":578,"title":"附加权限","children":[{"pid":578,"id":177,"title":"分类表单编辑","children":[]},{"pid":578,"id":176,"title":"分类表单添加","children":[]},{"pid":578,"id":175,"title":"快速编辑","children":[]},{"pid":578,"id":174,"title":"分类状态","children":[]},{"pid":578,"id":173,"title":"新增分类","children":[]},{"pid":578,"id":172,"title":"修改分类","children":[]},{"pid":578,"id":171,"title":"删除分类","children":[]}],"expand":true},{"pid":3,"id":178,"title":"分类树形列表","children":[]},{"pid":3,"id":170,"title":"分类列表","children":[]}],"expand":true},{"pid":1,"id":2,"title":"商品管理","children":[{"pid":2,"id":108,"title":"产品列表","children":[]},{"pid":2,"id":596,"title":"商品导出","children":[]},{"pid":2,"id":192,"title":"商品列表头部","children":[]},{"pid":2,"id":612,"title":"批量上下架","children":[]},{"pid":2,"id":669,"title":"批量下架","children":[]},{"pid":2,"id":577,"title":"附加权限","children":[{"pid":577,"id":893,"title":"商品活动状态检测","children":[]},{"pid":577,"id":886,"title":"用户标签接口","children":[]},{"pid":577,"id":193,"title":"商品列表插件","children":[]},{"pid":577,"id":183,"title":"采集商品保存","children":[]},{"pid":577,"id":182,"title":"采集商品","children":[]},{"pid":577,"id":181,"title":"批量上架商品","children":[]},{"pid":577,"id":180,"title":"快速编辑","children":[]},{"pid":577,"id":179,"title":"产品状态","children":[]},{"pid":577,"id":169,"title":"商品删除","children":[]}],"expand":true}],"expand":true},{"pid":1,"id":6,"title":"商品评论","children":[{"pid":6,"id":579,"title":"附加权限","children":[{"pid":579,"id":189,"title":"评论回复","children":[]},{"pid":579,"id":188,"title":"删除评论","children":[]},{"pid":579,"id":185,"title":"保存虚拟评论","children":[]},{"pid":579,"id":184,"title":"虚拟评论表单","children":[]}],"expand":true},{"pid":6,"id":190,"title":"评论列表","children":[]}],"expand":true}],"expand":true},{"pid":0,"id":4,"title":"订单","children":[{"pid":4,"id":5,"title":"订单管理","children":[{"pid":5,"id":919,"title":"拆单发送货","children":[]},{"pid":5,"id":918,"title":"可拆分商品列表","children":[]},{"pid":5,"id":917,"title":"订单记录","children":[]},{"pid":5,"id":916,"title":"订单详情","children":[]},{"pid":5,"id":915,"title":"子订单列表","children":[]},{"pid":5,"id":597,"title":"订单导出","children":[]},{"pid":5,"id":581,"title":"附加权限","children":[{"pid":581,"id":226,"title":"批量删除订单","children":[]},{"pid":581,"id":219,"title":"线下支付","children":[]},{"pid":581,"id":223,"title":"订单备注","children":[]},{"pid":581,"id":225,"title":"订单删除","children":[]},{"pid":581,"id":800,"title":"电子面单打印","children":[]},{"pid":581,"id":677,"title":"订单号核销","children":[]},{"pid":581,"id":670,"title":"订单打印","children":[]},{"pid":581,"id":220,"title":"退积分","children":[{"pid":220,"id":222,"title":"修改退积分","children":[]},{"pid":220,"id":221,"title":"退积分表单","children":[]}],"expand":true},{"pid":581,"id":216,"title":"不退款","children":[{"pid":216,"id":218,"title":"不退款理由修改","children":[]},{"pid":216,"id":217,"title":"不退款表格","children":[]}],"expand":true},{"pid":581,"id":215,"title":"修改","children":[{"pid":215,"id":202,"title":"订单修改","children":[]},{"pid":215,"id":201,"title":"订单修改表格","children":[]}],"expand":true},{"pid":581,"id":214,"title":"退款","children":[{"pid":214,"id":206,"title":"订单退款","children":[]},{"pid":214,"id":205,"title":"订单退款表格","children":[]}],"expand":true},{"pid":581,"id":213,"title":"订单配送","children":[{"pid":213,"id":212,"title":"修改配送信息","children":[]},{"pid":213,"id":211,"title":"订单配送表格","children":[]}],"expand":true},{"pid":581,"id":209,"title":"发货","children":[{"pid":209,"id":224,"title":"获取电子面单信息","children":[]},{"pid":209,"id":799,"title":"获取电子面单打印默认配置","children":[]},{"pid":209,"id":798,"title":"获取送货人列表","children":[]},{"pid":209,"id":208,"title":"物流公司列表","children":[]},{"pid":209,"id":204,"title":"订单发货","children":[]}],"expand":true},{"pid":581,"id":207,"title":"订单物流信息","children":[]},{"pid":581,"id":203,"title":"订单收货","children":[]},{"pid":581,"id":200,"title":"订单核销","children":[]}],"expand":true},{"pid":5,"id":199,"title":"订单数据","children":[]},{"pid":5,"id":198,"title":"订单列表","children":[]}],"expand":true},{"pid":4,"id":897,"title":"售后订单","children":[{"pid":897,"id":914,"title":"售后订单列表","children":[]}],"expand":true},{"pid":4,"id":760,"title":"收银订单","children":[{"pid":760,"id":801,"title":"获取收银二维码","children":[]},{"pid":760,"id":761,"title":"线下收银订单","children":[]}],"expand":true}],"expand":true},{"pid":0,"id":9,"title":"用户","children":[{"pid":9,"id":10,"title":"用户管理","children":[{"pid":10,"id":828,"title":"用户列表","children":[]},{"pid":10,"id":585,"title":"附加权限","children":[{"pid":585,"id":628,"title":"单个用户分组设置","children":[]},{"pid":585,"id":621,"title":"保存用户信息","children":[]},{"pid":585,"id":895,"title":"新增客服选择用户列表","children":[]},{"pid":585,"id":759,"title":"同步公众号用户","children":[]},{"pid":585,"id":756,"title":"添加用户","children":[{"pid":756,"id":758,"title":"保存用户","children":[]},{"pid":756,"id":757,"title":"获取添加用户表单","children":[]}],"expand":true},{"pid":585,"id":671,"title":"清除会员等级","children":[]},{"pid":585,"id":625,"title":"赠送用户","children":[{"pid":625,"id":888,"title":"保存赠送付费会员时长","children":[]},{"pid":625,"id":887,"title":"获取赠送付费会员时长表单","children":[]},{"pid":625,"id":627,"title":"赠送会员等级","children":[]},{"pid":625,"id":626,"title":"获取表单","children":[]}],"expand":true},{"pid":585,"id":622,"title":"积分余额","children":[{"pid":622,"id":624,"title":"修改用户余额","children":[]},{"pid":622,"id":623,"title":"获取修改用户详情表单","children":[]}],"expand":true},{"pid":585,"id":613,"title":"批量设置标签","children":[{"pid":613,"id":615,"title":"保存标签","children":[]},{"pid":613,"id":614,"title":"获取标签表单","children":[]}],"expand":true},{"pid":585,"id":244,"title":"批量用户分组","children":[{"pid":244,"id":246,"title":"保存分组","children":[]},{"pid":244,"id":245,"title":"用户分组表单","children":[]}],"expand":true},{"pid":585,"id":241,"title":"发送图文","children":[{"pid":241,"id":243,"title":"发送图文","children":[]},{"pid":241,"id":242,"title":"图文列表","children":[]}],"expand":true},{"pid":585,"id":238,"title":"发送优惠卷","children":[{"pid":238,"id":240,"title":"发送优惠卷","children":[]},{"pid":238,"id":239,"title":"优惠卷列表","children":[]}],"expand":true},{"pid":585,"id":236,"title":"修改用户信息","children":[]},{"pid":585,"id":235,"title":"获取用户信息","children":[]},{"pid":585,"id":234,"title":"修改用户信息表单","children":[]},{"pid":585,"id":233,"title":"创建用户表单","children":[]},{"pid":585,"id":232,"title":"用户详情","children":[]}],"expand":true}],"expand":true},{"pid":9,"id":227,"title":"用户分组","children":[{"pid":227,"id":263,"title":"添加修改用户分组","children":[{"pid":263,"id":265,"title":"保存修改用户分组","children":[]},{"pid":263,"id":264,"title":"添加修改用户分组表单","children":[]}],"expand":true},{"pid":227,"id":262,"title":"删除用户分组","children":[]},{"pid":227,"id":261,"title":"用户分组列表","children":[]}],"expand":true},{"pid":9,"id":589,"title":"用户标签","children":[{"pid":589,"id":894,"title":"会员标签列表","children":[]},{"pid":589,"id":780,"title":"标签分类","children":[{"pid":780,"id":788,"title":"删除用户标签分类","children":[]},{"pid":780,"id":785,"title":"修改标签分类","children":[{"pid":785,"id":787,"title":"保存用户标签分类","children":[]},{"pid":785,"id":786,"title":"获取修改标签分类表单","children":[]}],"expand":true},{"pid":780,"id":782,"title":"添加标签分类","children":[{"pid":782,"id":784,"title":"保存标签分类","children":[]},{"pid":782,"id":783,"title":"获取标签分类表单","children":[]}],"expand":true},{"pid":780,"id":781,"title":"获取标签分类列表","children":[]}],"expand":true},{"pid":589,"id":774,"title":"用户标签列表","children":[]},{"pid":589,"id":592,"title":"添加修改用户标签","children":[{"pid":592,"id":594,"title":"保存修改用户标签","children":[]},{"pid":592,"id":593,"title":"添加修改用户标签表单","children":[]}],"expand":true},{"pid":589,"id":591,"title":"删除用户标签","children":[]},{"pid":589,"id":590,"title":"获取用户标签","children":[]}],"expand":true},{"pid":9,"id":731,"title":"付费会员","children":[{"pid":731,"id":751,"title":"会员类型","children":[{"pid":751,"id":753,"title":"附加权限","children":[{"pid":753,"id":754,"title":"会员卡类型保存","children":[]}],"expand":true},{"pid":751,"id":752,"title":"会员分类列表","children":[]}],"expand":true},{"pid":731,"id":765,"title":"会员权益","children":[{"pid":765,"id":772,"title":"附加权限","children":[{"pid":772,"id":773,"title":"会员权益保存","children":[]}],"expand":true},{"pid":765,"id":771,"title":"会员权益列表","children":[]}],"expand":true},{"pid":731,"id":763,"title":"会员记录","children":[{"pid":763,"id":764,"title":"会员记录列表","children":[]}],"expand":true},{"pid":731,"id":762,"title":"卡密会员","children":[{"pid":762,"id":803,"title":"下载卡密二维码","children":[]},{"pid":762,"id":736,"title":"卡密列表","children":[]},{"pid":762,"id":732,"title":"附加权限","children":[{"pid":732,"id":830,"title":"卡密列表","children":[]},{"pid":732,"id":737,"title":"会员卡列表","children":[]},{"pid":732,"id":735,"title":"会员卡导出","children":[]},{"pid":732,"id":734,"title":"列表字段修改","children":[]},{"pid":732,"id":733,"title":" 添加会员批次","children":[]}],"expand":true}],"expand":true}],"expand":true},{"pid":9,"id":11,"title":"用户等级","children":[{"pid":11,"id":586,"title":"附加权限","children":[{"pid":586,"id":253,"title":"等级任务","children":[{"pid":253,"id":260,"title":"删除等级任务","children":[]},{"pid":253,"id":257,"title":"添加修改等级任务","children":[{"pid":257,"id":259,"title":"保存修改任务","children":[]},{"pid":257,"id":258,"title":"添加等级任务表单","children":[]}],"expand":true},{"pid":253,"id":256,"title":"等级任务是否必达","children":[]},{"pid":253,"id":255,"title":"等级任务显示隐藏","children":[]},{"pid":253,"id":254,"title":"等级任务列表","children":[]}],"expand":true},{"pid":586,"id":252,"title":"删除用户等级","children":[]},{"pid":586,"id":251,"title":"用户等级是否显示","children":[]},{"pid":586,"id":247,"title":"添加修改用户等级","children":[{"pid":247,"id":249,"title":"保存会员等级","children":[]},{"pid":247,"id":248,"title":"添加会员等级表单","children":[]}],"expand":true}],"expand":true},{"pid":11,"id":250,"title":"用户等级列表","children":[]}],"expand":true}],"expand":true},{"pid":0,"id":26,"title":"分销","children":[{"pid":26,"id":29,"title":"分销员管理","children":[{"pid":29,"id":606,"title":"分销员数据","children":[]},{"pid":29,"id":602,"title":"推广员列表导出","children":[]},{"pid":29,"id":584,"title":"附加权限","children":[{"pid":584,"id":805,"title":"修改推广人","children":[]},{"pid":584,"id":271,"title":"推广二维码","children":[{"pid":271,"id":672,"title":"H5推广二维码","children":[]},{"pid":271,"id":273,"title":"小程序推广二维码","children":[]},{"pid":271,"id":272,"title":"公众号推广二维码","children":[]}],"expand":true},{"pid":584,"id":270,"title":"清除推广人","children":[]},{"pid":584,"id":267,"title":"分销员数据","children":[]}],"expand":true},{"pid":29,"id":269,"title":"推广人订单列表","children":[]},{"pid":29,"id":268,"title":"推广人列表","children":[]},{"pid":29,"id":266,"title":"分销员列表","children":[]}],"expand":true},{"pid":26,"id":28,"title":"分销设置","children":[{"pid":28,"id":975,"title":"分销配置头部","children":[]},{"pid":28,"id":836,"title":"分销设置表单提交","children":[]},{"pid":28,"id":835,"title":"分销设置表单","children":[]}],"expand":true},{"pid":26,"id":1013,"title":"事业部","children":[{"pid":1013,"id":1016,"title":"代理商申请","children":[{"pid":1016,"id":1039,"title":"删除审核","children":[]},{"pid":1016,"id":1038,"title":"提交审核","children":[]},{"pid":1016,"id":1037,"title":"代理商审核","children":[]},{"pid":1016,"id":1036,"title":"代理商申请列表","children":[]}],"expand":true},{"pid":1013,"id":1015,"title":"代理商列表","children":[{"pid":1015,"id":1035,"title":"代理商删除","children":[]},{"pid":1015,"id":1034,"title":"代理商状态切换","children":[]},{"pid":1015,"id":1033,"title":"代理商保存","children":[]},{"pid":1015,"id":1032,"title":"添加代理商","children":[]},{"pid":1015,"id":1031,"title":"代理商下级列表","children":[]},{"pid":1015,"id":1030,"title":"代理商列表","children":[]}],"expand":true},{"pid":1013,"id":1014,"title":"事业部列表","children":[{"pid":1014,"id":1029,"title":"事业部删除","children":[]},{"pid":1014,"id":1028,"title":"事业部状态切换","children":[]},{"pid":1014,"id":1027,"title":"事业部保存","children":[]},{"pid":1014,"id":1026,"title":"事业部下级列表","children":[]},{"pid":1014,"id":1021,"title":"添加事业部","children":[]},{"pid":1014,"id":1020,"title":"事业部列表","children":[]}],"expand":true}],"expand":true},{"pid":26,"id":896,"title":"分销等级","children":[{"pid":896,"id":935,"title":"删除分销员等级任务","children":[]},{"pid":896,"id":934,"title":"编辑分销员等级任务","children":[]},{"pid":896,"id":933,"title":"编辑分销员等级任务表单","children":[]},{"pid":896,"id":932,"title":"添加分销员等级任务","children":[]},{"pid":896,"id":931,"title":"添加分销员等级任务表单","children":[]},{"pid":896,"id":930,"title":"编辑分销员等级","children":[]},{"pid":896,"id":929,"title":"添加分销员等级","children":[]},{"pid":896,"id":928,"title":"删除分销等级","children":[]},{"pid":896,"id":927,"title":"分销等级任务","children":[]},{"pid":896,"id":926,"title":"编辑分销等级表单","children":[]},{"pid":896,"id":925,"title":"添加分销等级表单","children":[]},{"pid":896,"id":924,"title":"分销等级列表","children":[]},{"pid":896,"id":923,"title":"赠送分销等级","children":[]},{"pid":896,"id":922,"title":"获取赠送分销等级表单","children":[]},{"pid":896,"id":921,"title":"修改分销等级任务状态","children":[]},{"pid":896,"id":920,"title":"修改分销等级状态","children":[]}],"expand":true}],"expand":true},{"pid":0,"id":165,"title":"客服","children":[{"pid":165,"id":738,"title":"用户留言","children":[{"pid":738,"id":740,"title":"附件权限","children":[{"pid":740,"id":779,"title":"修改用户备注接口","children":[]},{"pid":740,"id":778,"title":"获取修改备注表单接口","children":[]},{"pid":740,"id":741,"title":"删除反馈","children":[]}],"expand":true},{"pid":738,"id":739,"title":"列表展示","children":[]}],"expand":true},{"pid":165,"id":679,"title":"客服话术","children":[{"pid":679,"id":743,"title":"附件权限","children":[{"pid":743,"id":789,"title":"话术分类","children":[{"pid":789,"id":797,"title":"删除话术分类","children":[]},{"pid":789,"id":795,"title":"修改话术分类","children":[{"pid":795,"id":796,"title":"保存修改客户话术分类","children":[]},{"pid":795,"id":794,"title":"获取话术分类表单","children":[]}],"expand":true},{"pid":789,"id":791,"title":"添加话术分类","children":[{"pid":791,"id":793,"title":"保存话术分类","children":[]},{"pid":791,"id":792,"title":"获取话术分类表单","children":[]}],"expand":true},{"pid":789,"id":790,"title":"获取话术分类列表","children":[]}],"expand":true},{"pid":743,"id":750,"title":"删除话术","children":[]},{"pid":743,"id":745,"title":"编辑话术","children":[{"pid":745,"id":749,"title":"确认修改","children":[]},{"pid":745,"id":748,"title":"获取编辑话术表单","children":[]}],"expand":true},{"pid":743,"id":744,"title":"添加话术","children":[{"pid":744,"id":747,"title":"保存话术","children":[]},{"pid":744,"id":746,"title":"获取添加话术表单","children":[]}],"expand":true}],"expand":true},{"pid":679,"id":742,"title":"列表展示","children":[]}],"expand":true},{"pid":165,"id":678,"title":"客服列表","children":[{"pid":678,"id":423,"title":"附加权限","children":[{"pid":423,"id":320,"title":"编辑客服","children":[{"pid":320,"id":324,"title":"修改客服","children":[]},{"pid":320,"id":323,"title":"编辑客服表单","children":[]}],"expand":true},{"pid":423,"id":936,"title":"新增客服选择用户列表","children":[]},{"pid":423,"id":831,"title":"进入工作台","children":[]},{"pid":423,"id":322,"title":"客服是否开启","children":[]},{"pid":423,"id":321,"title":"删除客服","children":[]},{"pid":423,"id":319,"title":"聊天记录","children":[]},{"pid":423,"id":316,"title":"添加客服","children":[{"pid":316,"id":318,"title":"保存客服","children":[]},{"pid":316,"id":317,"title":"客服用户列表","children":[]}],"expand":true}],"expand":true},{"pid":678,"id":422,"title":"客服列表","children":[]}],"expand":true}],"expand":true},{"pid":0,"id":716,"title":"统计","children":[{"pid":716,"id":1005,"title":"余额统计","children":[]},{"pid":716,"id":997,"title":"订单统计","children":[]},{"pid":716,"id":766,"title":"交易统计","children":[{"pid":766,"id":823,"title":"获取订单趋势","children":[]},{"pid":766,"id":822,"title":"获取交易趋势","children":[]}],"expand":true},{"pid":716,"id":718,"title":"用户统计","children":[{"pid":718,"id":824,"title":"导出用户统计","children":[]},{"pid":718,"id":821,"title":"获取用户性别排行","children":[]},{"pid":718,"id":820,"title":"获取用户地区排行","children":[]},{"pid":718,"id":819,"title":"获取用户趋势","children":[]},{"pid":718,"id":818,"title":"获取用户基础","children":[]}],"expand":true},{"pid":716,"id":717,"title":"商品统计","children":[{"pid":717,"id":976,"title":"查看商品","children":[]},{"pid":717,"id":825,"title":"导出商品统计","children":[]},{"pid":717,"id":817,"title":"获取商品排行","children":[]},{"pid":717,"id":816,"title":"获取商品趋势","children":[]},{"pid":717,"id":815,"title":"获取基础商品接口","children":[]}],"expand":true}],"expand":true},{"pid":0,"id":43,"title":"内容","children":[{"pid":43,"id":45,"title":"文章分类","children":[{"pid":45,"id":416,"title":"附加权限","children":[{"pid":416,"id":673,"title":"修改文章分类状态","children":[]},{"pid":416,"id":421,"title":"删除文章分类","children":[]},{"pid":416,"id":420,"title":"修改文章分类","children":[]},{"pid":416,"id":419,"title":"编辑文章分类","children":[]},{"pid":416,"id":418,"title":"保存文章分类","children":[]},{"pid":416,"id":417,"title":"文章分类添加表单","children":[]}],"expand":true},{"pid":45,"id":415,"title":"文章列表","children":[]}],"expand":true},{"pid":43,"id":44,"title":"文章管理","children":[{"pid":44,"id":409,"title":"公共权限","children":[{"pid":409,"id":306,"title":"文章分类","children":[]}],"expand":true},{"pid":44,"id":406,"title":"附加权限","children":[{"pid":406,"id":414,"title":"删除文章","children":[]},{"pid":406,"id":413,"title":"取消关联","children":[]},{"pid":406,"id":412,"title":"关联商品","children":[]},{"pid":406,"id":411,"title":"分类树型列表","children":[]},{"pid":406,"id":410,"title":"关联商品列表","children":[]},{"pid":406,"id":408,"title":"获取文章详情","children":[]},{"pid":406,"id":407,"title":"保存修改文章","children":[]}],"expand":true},{"pid":44,"id":305,"title":"文章列表","children":[]}],"expand":true},{"pid":43,"id":46,"title":"文章添加","children":[]}],"expand":true},{"pid":0,"id":35,"title":"财务","children":[{"pid":35,"id":38,"title":"佣金记录","children":[{"pid":38,"id":42,"title":"佣金记录","children":[{"pid":42,"id":618,"title":"佣金导出","children":[]},{"pid":42,"id":308,"title":"用户详情","children":[{"pid":308,"id":310,"title":"佣金详细列表","children":[]},{"pid":308,"id":309,"title":"获取用户信息","children":[]}],"expand":true},{"pid":42,"id":307,"title":"佣金记录列表","children":[]}],"expand":true}],"expand":true},{"pid":35,"id":37,"title":"财务记录","children":[{"pid":37,"id":40,"title":"充值记录","children":[{"pid":40,"id":634,"title":"删除充值记录","children":[]},{"pid":40,"id":603,"title":"用户充值导出","children":[]},{"pid":40,"id":297,"title":"退款","children":[{"pid":297,"id":299,"title":"保存退款","children":[]},{"pid":297,"id":298,"title":"获取退款表单","children":[]}],"expand":true},{"pid":40,"id":296,"title":"充值数据","children":[]},{"pid":40,"id":295,"title":"充值列表","children":[]}],"expand":true},{"pid":37,"id":999,"title":"账单记录","children":[]},{"pid":37,"id":998,"title":"资金流水","children":[]}],"expand":true},{"pid":35,"id":36,"title":"财务操作","children":[{"pid":36,"id":39,"title":"提现申请","children":[{"pid":39,"id":405,"title":"附加权限","children":[{"pid":405,"id":292,"title":"提现编辑","children":[{"pid":292,"id":294,"title":"保存修改","children":[]},{"pid":292,"id":293,"title":"编辑表单","children":[]}],"expand":true},{"pid":405,"id":291,"title":"拒绝申请","children":[]},{"pid":405,"id":290,"title":"审核状态通过","children":[]}],"expand":true},{"pid":39,"id":404,"title":"提现申请列表","children":[]}],"expand":true},{"pid":36,"id":767,"title":"发票管理","children":[{"pid":767,"id":210,"title":"附加权限","children":[{"pid":210,"id":770,"title":"编辑提交","children":[]},{"pid":210,"id":769,"title":"订单信息","children":[]},{"pid":210,"id":768,"title":"编辑","children":[]}],"expand":true},{"pid":767,"id":802,"title":"获取订单发票数据","children":[]},{"pid":767,"id":231,"title":"发票列表","children":[]}],"expand":true}],"expand":true},{"pid":35,"id":1003,"title":"余额记录","children":[{"pid":1003,"id":1004,"title":"余额记录","children":[]}],"expand":true}],"expand":true},{"pid":0,"id":27,"title":"营销","children":[{"pid":27,"id":34,"title":"积分管理","children":[{"pid":34,"id":1002,"title":"积分统计","children":[]},{"pid":34,"id":1001,"title":"积分记录","children":[]},{"pid":34,"id":912,"title":"积分订单","children":[{"pid":912,"id":955,"title":"收货","children":[]},{"pid":912,"id":954,"title":"订单备注","children":[]},{"pid":912,"id":953,"title":"物流查询","children":[]},{"pid":912,"id":952,"title":"小票打印","children":[]},{"pid":912,"id":951,"title":"订单记录","children":[]},{"pid":912,"id":950,"title":"订单详情","children":[]},{"pid":912,"id":949,"title":"配送信息保存","children":[]},{"pid":912,"id":948,"title":"配送信息表单","children":[]},{"pid":912,"id":947,"title":"发货","children":[]},{"pid":912,"id":946,"title":"图表详情","children":[]},{"pid":912,"id":945,"title":"快递列表","children":[]},{"pid":912,"id":944,"title":"发货物流列表","children":[]},{"pid":912,"id":942,"title":"积分订单列表","children":[]},{"pid":912,"id":941,"title":"积分订单头部","children":[]}],"expand":true},{"pid":34,"id":905,"title":"积分商品","children":[{"pid":905,"id":943,"title":"积分商品编辑","children":[]},{"pid":905,"id":940,"title":"添加积分商品保存","children":[]},{"pid":905,"id":913,"title":"批量添加积分商品","children":[]},{"pid":905,"id":908,"title":"添加积分商品","children":[]},{"pid":905,"id":906,"title":"积分商品列表","children":[]}],"expand":true},{"pid":34,"id":154,"title":"签到配置","children":[{"pid":154,"id":939,"title":"签到配置添加保存","children":[]},{"pid":154,"id":938,"title":"签到配置编辑保存","children":[]},{"pid":154,"id":850,"title":"删除签到天数","children":[]},{"pid":154,"id":849,"title":"编辑签到天数","children":[]},{"pid":154,"id":848,"title":"编辑签到天数表单","children":[]},{"pid":154,"id":847,"title":"添加签到天数","children":[]},{"pid":154,"id":846,"title":"添加签到天数表单","children":[]},{"pid":154,"id":845,"title":"签到天数列表","children":[]},{"pid":154,"id":844,"title":"设置签到数据状态","children":[]},{"pid":154,"id":843,"title":"签到天数头部数据","children":[]}],"expand":true},{"pid":34,"id":79,"title":"积分配置","children":[{"pid":79,"id":838,"title":"积分配置表单提交","children":[]},{"pid":79,"id":837,"title":"积分配置表单","children":[]}],"expand":true}],"expand":true},{"pid":27,"id":33,"title":"秒杀管理","children":[{"pid":33,"id":148,"title":"添加秒杀","children":[]},{"pid":33,"id":78,"title":"秒杀配置","children":[{"pid":78,"id":937,"title":"秒杀配置头部","children":[]},{"pid":78,"id":881,"title":"删除秒杀","children":[]},{"pid":78,"id":880,"title":"编辑秒杀","children":[]},{"pid":78,"id":879,"title":"编辑秒杀表单","children":[]},{"pid":78,"id":878,"title":"添加秒杀","children":[]},{"pid":78,"id":877,"title":"添加秒杀表单","children":[]},{"pid":78,"id":876,"title":"秒杀配置列表","children":[]}],"expand":true},{"pid":33,"id":77,"title":"秒杀商品","children":[{"pid":77,"id":808,"title":"秒杀商品列表","children":[]},{"pid":77,"id":598,"title":"秒杀商品导出","children":[]},{"pid":77,"id":397,"title":"公共权限","children":[{"pid":397,"id":632,"title":"商品规格和获取","children":[]},{"pid":397,"id":401,"title":"秒杀时间段列表","children":[]},{"pid":397,"id":400,"title":"运费模板列表","children":[]},{"pid":397,"id":399,"title":"商品插件列表","children":[]},{"pid":397,"id":398,"title":"分类树型列表","children":[]}],"expand":true},{"pid":77,"id":395,"title":"附加权限","children":[{"pid":395,"id":633,"title":"获取秒杀详情","children":[]},{"pid":395,"id":403,"title":"删除秒杀商品","children":[]},{"pid":395,"id":402,"title":"编辑添加秒杀商品","children":[]},{"pid":395,"id":396,"title":"修改拼团状态","children":[]}],"expand":true}],"expand":true}],"expand":true},{"pid":27,"id":32,"title":"拼团管理","children":[{"pid":32,"id":147,"title":"添加拼团","children":[]},{"pid":32,"id":76,"title":"拼团列表","children":[{"pid":76,"id":393,"title":"拼团人员列表","children":[]},{"pid":76,"id":392,"title":"正在拼团列表","children":[]}],"expand":true},{"pid":32,"id":75,"title":"拼团商品","children":[{"pid":75,"id":600,"title":"拼团商品导出","children":[]},{"pid":75,"id":386,"title":"公共权限","children":[{"pid":386,"id":631,"title":"商品规格获取","children":[]},{"pid":386,"id":389,"title":"运费模板列表","children":[]},{"pid":386,"id":388,"title":"商品插件列表","children":[]},{"pid":386,"id":387,"title":"树型分类列表","children":[]}],"expand":true},{"pid":75,"id":383,"title":"附加权限","children":[{"pid":383,"id":391,"title":"编辑添加拼团","children":[]},{"pid":383,"id":390,"title":"获取拼团详情","children":[]},{"pid":383,"id":385,"title":"删除拼团","children":[]},{"pid":383,"id":384,"title":"拼团状态","children":[]}],"expand":true},{"pid":75,"id":382,"title":"拼团数据","children":[]},{"pid":75,"id":381,"title":"拼团列表","children":[]}],"expand":true}],"expand":true},{"pid":27,"id":31,"title":"砍价管理","children":[{"pid":31,"id":755,"title":"砍价列表","children":[{"pid":755,"id":833,"title":"砍价详情","children":[]},{"pid":755,"id":807,"title":"获取砍价列表","children":[]}],"expand":true},{"pid":31,"id":146,"title":"添加砍价","children":[]},{"pid":31,"id":74,"title":"砍价商品","children":[{"pid":74,"id":601,"title":"砍价商品导出","children":[]},{"pid":74,"id":375,"title":"公共权限","children":[{"pid":375,"id":630,"title":"获取商品属性","children":[]},{"pid":375,"id":378,"title":"运费模板","children":[]},{"pid":375,"id":377,"title":"商品插件列表","children":[]},{"pid":375,"id":376,"title":"分类树型列表","children":[]}],"expand":true},{"pid":74,"id":372,"title":"附加权限","children":[{"pid":372,"id":380,"title":"删除砍价商品","children":[]},{"pid":372,"id":379,"title":"修改添加砍价商品","children":[]},{"pid":372,"id":374,"title":"砍价商品详情","children":[]},{"pid":372,"id":373,"title":"修改砍价状态","children":[]}],"expand":true},{"pid":74,"id":371,"title":"砍价列表","children":[]}],"expand":true}],"expand":true},{"pid":27,"id":30,"title":"优惠券","children":[{"pid":30,"id":72,"title":"用户领取记录","children":[{"pid":72,"id":370,"title":"优惠卷领取列表","children":[]}],"expand":true},{"pid":30,"id":71,"title":"优惠券列表","children":[{"pid":71,"id":832,"title":"保存优惠券","children":[]},{"pid":71,"id":806,"title":"复制优惠券","children":[]},{"pid":71,"id":719,"title":"添加优惠卷","children":[]},{"pid":71,"id":285,"title":"修改状态","children":[{"pid":285,"id":287,"title":"保存修改状态","children":[]},{"pid":285,"id":286,"title":"修改状态表单","children":[]}],"expand":true},{"pid":71,"id":284,"title":"删除优惠卷","children":[]},{"pid":71,"id":283,"title":"领取记录","children":[]},{"pid":71,"id":282,"title":"优惠卷已发布列表","children":[]}],"expand":true},{"pid":30,"id":70,"title":"优惠券模板","children":[{"pid":70,"id":583,"title":"附加权限","children":[{"pid":583,"id":281,"title":"删除优惠卷","children":[]},{"pid":583,"id":280,"title":"立即失效","children":[]},{"pid":583,"id":277,"title":"发布优惠卷","children":[{"pid":277,"id":279,"title":"发布优惠卷","children":[]},{"pid":277,"id":278,"title":"发布优惠卷表单","children":[]}],"expand":true},{"pid":583,"id":274,"title":"添加优惠卷","children":[{"pid":274,"id":276,"title":"保存优惠卷","children":[]},{"pid":274,"id":275,"title":"添加优惠卷表单","children":[]}],"expand":true}],"expand":true},{"pid":70,"id":582,"title":"优惠卷模板列表","children":[]}],"expand":true}],"expand":true},{"pid":27,"id":1053,"title":"充值配置","children":[]},{"pid":27,"id":1023,"title":"公众号渠道码","children":[{"pid":1023,"id":1052,"title":"获取用户标签","children":[]},{"pid":1023,"id":1051,"title":"渠道码用户列表","children":[]},{"pid":1023,"id":1050,"title":"渠道码状态切换","children":[]},{"pid":1023,"id":1049,"title":"删除渠道码","children":[]},{"pid":1023,"id":1048,"title":"渠道码列表","children":[]},{"pid":1023,"id":1047,"title":"渠道码详情","children":[]},{"pid":1023,"id":1046,"title":"保存渠道码","children":[]},{"pid":1023,"id":1045,"title":"渠道码分类删除","children":[]},{"pid":1023,"id":1044,"title":"渠道码分类保存","children":[]},{"pid":1023,"id":1043,"title":"渠道码分类添加编辑表单","children":[]},{"pid":1023,"id":1042,"title":"渠道码分类列表","children":[]},{"pid":1023,"id":1025,"title":"渠道码统计","children":[]},{"pid":1023,"id":1024,"title":"添加公众号渠道码","children":[]}],"expand":true},{"pid":27,"id":965,"title":"营销公共权限","children":[{"pid":965,"id":967,"title":"附件列表","children":[]},{"pid":965,"id":966,"title":"附件分类","children":[]}],"expand":true},{"pid":27,"id":909,"title":"九宫格抽奖","children":[{"pid":909,"id":1019,"title":"中奖记录","children":[]},{"pid":909,"id":1018,"title":"抽奖配置","children":[]},{"pid":909,"id":973,"title":"添加抽奖","children":[]},{"pid":909,"id":972,"title":"抽奖状态","children":[]},{"pid":909,"id":971,"title":"抽奖记录备注","children":[]},{"pid":909,"id":970,"title":"物流公司","children":[]},{"pid":909,"id":969,"title":"抽奖记录列表","children":[]},{"pid":909,"id":968,"title":"删除抽奖","children":[]},{"pid":909,"id":964,"title":"编辑保存","children":[]},{"pid":909,"id":963,"title":"会员等级","children":[]},{"pid":909,"id":962,"title":"用户等级","children":[]},{"pid":909,"id":961,"title":"抽奖商品详情","children":[]},{"pid":909,"id":960,"title":"抽奖列表","children":[]}],"expand":true},{"pid":27,"id":686,"title":"直播管理","children":[{"pid":686,"id":689,"title":"主播管理","children":[{"pid":689,"id":694,"title":"附加权限","children":[{"pid":694,"id":698,"title":"设置主播是否显示","children":[]},{"pid":694,"id":697,"title":"删除主播","children":[]},{"pid":694,"id":696,"title":"添加\\/修改提交","children":[]},{"pid":694,"id":695,"title":"添加\\/修改主播表单","children":[]}],"expand":true},{"pid":689,"id":693,"title":"主播列表","children":[]}],"expand":true},{"pid":686,"id":688,"title":"直播商品管理","children":[{"pid":688,"id":702,"title":"附加权限","children":[{"pid":702,"id":706,"title":"设置直播商品是否显示","children":[]},{"pid":702,"id":705,"title":"同步直播商品","children":[]},{"pid":702,"id":704,"title":"删除直播商品","children":[]},{"pid":702,"id":703,"title":"直播商品详情","children":[]}],"expand":true},{"pid":688,"id":699,"title":"直播商品列表","children":[]},{"pid":688,"id":691,"title":"添加直播商品","children":[{"pid":691,"id":701,"title":"保存直播商品","children":[]},{"pid":691,"id":700,"title":"生成直播商品","children":[]}],"expand":true}],"expand":true},{"pid":686,"id":687,"title":"直播间管理","children":[{"pid":687,"id":708,"title":"直播间列表","children":[]},{"pid":687,"id":707,"title":"附加权限","children":[{"pid":707,"id":714,"title":"同步直播间状态","children":[]},{"pid":707,"id":713,"title":"设置直播间是否显示","children":[]},{"pid":707,"id":712,"title":"删除直播间","children":[]},{"pid":707,"id":711,"title":"直播间添加（关联）商品","children":[]},{"pid":707,"id":710,"title":"直播间详情","children":[]},{"pid":707,"id":709,"title":"添加直播间提交","children":[]}],"expand":true},{"pid":687,"id":690,"title":"添加直播间","children":[]}],"expand":true}],"expand":true}],"expand":true},{"pid":0,"id":135,"title":"应用","children":[{"pid":135,"id":1009,"title":"APP","children":[{"pid":1009,"id":1055,"title":"版本管理","children":[]},{"pid":1009,"id":1011,"title":"APP配置","children":[]}],"expand":true},{"pid":135,"id":1008,"title":"PC端","children":[{"pid":1008,"id":1010,"title":"PC端配置","children":[]}],"expand":true},{"pid":135,"id":993,"title":"小程序","children":[{"pid":993,"id":1007,"title":"小程序配置","children":[]},{"pid":993,"id":994,"title":"小程序下载","children":[{"pid":994,"id":996,"title":"下载小程序模版","children":[]},{"pid":994,"id":995,"title":"下载小程序页面数据","children":[]}],"expand":true}],"expand":true},{"pid":135,"id":69,"title":"公众号","children":[{"pid":69,"id":1006,"title":"公众号配置","children":[]},{"pid":69,"id":114,"title":"自动回复","children":[{"pid":114,"id":558,"title":"公共权限","children":[{"pid":558,"id":562,"title":"保存修改关键字","children":[]},{"pid":558,"id":559,"title":"回复关键词","children":[]}],"expand":true},{"pid":114,"id":134,"title":"关键字添加","children":[]},{"pid":114,"id":116,"title":"无效关键词回复","children":[]},{"pid":114,"id":115,"title":"关键字回复","children":[{"pid":115,"id":561,"title":"附加权限","children":[{"pid":561,"id":565,"title":"删除关键字","children":[]},{"pid":561,"id":564,"title":"修改关键字状态","children":[]},{"pid":561,"id":563,"title":"获取关键字信息","children":[]}],"expand":true},{"pid":115,"id":560,"title":"关键词回复列表","children":[]}],"expand":true},{"pid":114,"id":113,"title":"微信关注回复","children":[]}],"expand":true},{"pid":69,"id":110,"title":"图文添加","children":[]},{"pid":69,"id":109,"title":"图文管理","children":[{"pid":109,"id":554,"title":"附加权限","children":[{"pid":554,"id":557,"title":"删除图文","children":[]},{"pid":554,"id":556,"title":"图文详情","children":[]},{"pid":554,"id":555,"title":"保存图文","children":[]}],"expand":true},{"pid":109,"id":553,"title":"图文列表","children":[]}],"expand":true},{"pid":69,"id":92,"title":"微信菜单","children":[{"pid":92,"id":508,"title":"保存微信菜单","children":[]},{"pid":92,"id":507,"title":"微信菜单列表","children":[]}],"expand":true}],"expand":true}],"expand":true},{"pid":0,"id":12,"title":"设置","children":[{"pid":12,"id":23,"title":"系统设置","children":[{"pid":23,"id":315,"title":"修改配置","children":[]},{"pid":23,"id":314,"title":"获取配置列表","children":[]},{"pid":23,"id":313,"title":"获取头部导航","children":[]}],"expand":true},{"pid":12,"id":94,"title":"一号通","children":[{"pid":94,"id":361,"title":"短信设置附加权限","children":[{"pid":361,"id":348,"title":"短信剩余条数","children":[]},{"pid":361,"id":347,"title":"是否登陆短信平台","children":[]}],"expand":true},{"pid":94,"id":97,"title":"套餐购买","children":[{"pid":97,"id":360,"title":"短信购买支付码","children":[]},{"pid":97,"id":359,"title":"短信套餐","children":[]}],"expand":true},{"pid":94,"id":96,"title":"短信模板","children":[{"pid":96,"id":356,"title":"申请模板","children":[{"pid":356,"id":358,"title":"保存申请短信模板","children":[]},{"pid":356,"id":357,"title":"申请短信模板表单","children":[]}],"expand":true},{"pid":96,"id":355,"title":"短信模板列表","children":[]}],"expand":true},{"pid":94,"id":95,"title":"账户管理","children":[{"pid":95,"id":834,"title":"短信记录列表","children":[]},{"pid":95,"id":813,"title":"修改账号密码","children":[]},{"pid":95,"id":812,"title":"修改签名","children":[]},{"pid":95,"id":811,"title":"修改手机号","children":[]},{"pid":95,"id":810,"title":"获取平台消费列表","children":[]},{"pid":95,"id":809,"title":"获取平台用户信息","children":[]},{"pid":95,"id":353,"title":"退出短信登陆","children":[]},{"pid":95,"id":351,"title":"登陆短信平台","children":[]},{"pid":95,"id":350,"title":"修改注册账号","children":[]},{"pid":95,"id":349,"title":"获取短信验证码","children":[]}],"expand":true}],"expand":true},{"pid":12,"id":656,"title":"页面管理","children":[{"pid":656,"id":660,"title":"页面链接","children":[{"pid":660,"id":666,"title":"路径列表","children":[]}],"expand":true},{"pid":656,"id":658,"title":"页面编辑","children":[]},{"pid":656,"id":657,"title":"页面设计","children":[{"pid":657,"id":983,"title":"个人中心页保存","children":[]},{"pid":657,"id":982,"title":"商品分类页保存","children":[]},{"pid":657,"id":981,"title":"获取页面链接","children":[]},{"pid":657,"id":980,"title":"个人中心组件树形分类","children":[]},{"pid":657,"id":979,"title":"个人中心组件分类","children":[]},{"pid":657,"id":978,"title":"获取个人中心菜单","children":[]},{"pid":657,"id":977,"title":"获取风格设置","children":[]},{"pid":657,"id":676,"title":"组件商品列表","children":[]},{"pid":657,"id":675,"title":"组件商品分类","children":[]},{"pid":657,"id":663,"title":"附加权限","children":[{"pid":663,"id":892,"title":"获取商品列表","children":[]},{"pid":663,"id":891,"title":"设置默认数据","children":[]},{"pid":663,"id":890,"title":"保存新增","children":[]},{"pid":663,"id":889,"title":"添加页面","children":[]},{"pid":663,"id":668,"title":"修改页面状态","children":[]},{"pid":663,"id":667,"title":"删除页面","children":[]},{"pid":663,"id":665,"title":"保存和修改页面","children":[]},{"pid":663,"id":664,"title":"获取页面设计","children":[]}],"expand":true},{"pid":657,"id":662,"title":"组件文章分类","children":[]},{"pid":657,"id":661,"title":"DIY列表","children":[]}],"expand":true},{"pid":656,"id":903,"title":"PC商城","children":[]},{"pid":656,"id":902,"title":"主题风格","children":[]},{"pid":656,"id":128,"title":"数据配置","children":[{"pid":128,"id":987,"title":"客服页面广告","children":[]},{"pid":128,"id":986,"title":"保存配置","children":[]},{"pid":128,"id":985,"title":"获取头部","children":[]},{"pid":128,"id":984,"title":"获取组合数据","children":[]},{"pid":128,"id":884,"title":"获取数据分类","children":[]}],"expand":true},{"pid":656,"id":566,"title":"素材管理","children":[{"pid":566,"id":574,"title":"上传附件","children":[]},{"pid":566,"id":1000,"title":"富文本上传图片","children":[]},{"pid":566,"id":569,"title":"附加权限","children":[{"pid":569,"id":885,"title":"附件名称修改","children":[]},{"pid":569,"id":576,"title":"附件分类修改","children":[]},{"pid":569,"id":575,"title":"附件分类编辑表单","children":[]},{"pid":569,"id":573,"title":"移动附件分类","children":[]},{"pid":569,"id":572,"title":"删除附件","children":[]},{"pid":569,"id":571,"title":"附件分类保存","children":[]},{"pid":569,"id":570,"title":"附件分类表单","children":[]}],"expand":true},{"pid":566,"id":568,"title":"附件分类","children":[]},{"pid":566,"id":567,"title":"附件列表","children":[]}],"expand":true}],"expand":true},{"pid":12,"id":1064,"title":"对外接口","children":[{"pid":1064,"id":1066,"title":"账号管理","children":[]},{"pid":1064,"id":1065,"title":"基础配置","children":[]}],"expand":true},{"pid":12,"id":1061,"title":"协议设置","children":[]},{"pid":12,"id":1056,"title":"接口配置","children":[{"pid":1056,"id":1063,"title":"商城支付配置","children":[]},{"pid":1056,"id":1062,"title":"短信接口配置","children":[]},{"pid":1056,"id":1060,"title":"电子面单配置","children":[]},{"pid":1056,"id":1059,"title":"物流查询配置","children":[]},{"pid":1056,"id":1058,"title":"商品采集配置","children":[]},{"pid":1056,"id":1057,"title":"小票打印配置","children":[]},{"pid":1056,"id":1012,"title":"系统存储配置","children":[]}],"expand":true},{"pid":12,"id":898,"title":"消息管理","children":[{"pid":898,"id":992,"title":"一键同步模版消息","children":[]},{"pid":898,"id":991,"title":"模板消息状态修改","children":[]},{"pid":898,"id":990,"title":"编辑保存","children":[]},{"pid":898,"id":989,"title":"模板消息详情","children":[]},{"pid":898,"id":988,"title":"消息管理列表","children":[]},{"pid":898,"id":715,"title":"一键同步订阅消息","children":[]}],"expand":true},{"pid":12,"id":303,"title":"发货设置","children":[{"pid":303,"id":720,"title":"配送员管理","children":[{"pid":720,"id":729,"title":"附加权限","children":[{"pid":729,"id":728,"title":"配送员是否开启","children":[]},{"pid":729,"id":727,"title":"删除配送员","children":[]},{"pid":729,"id":724,"title":"添加配送员","children":[{"pid":724,"id":726,"title":"保存配送员","children":[]},{"pid":724,"id":725,"title":"获取添加配送员表单","children":[]}],"expand":true},{"pid":729,"id":721,"title":"编辑配送员","children":[{"pid":721,"id":814,"title":"获取编辑配送员表单","children":[]},{"pid":721,"id":723,"title":"修改配送员","children":[]}],"expand":true}],"expand":true},{"pid":720,"id":722,"title":"配送员列表","children":[]}],"expand":true},{"pid":303,"id":144,"title":"提货点设置","children":[{"pid":144,"id":425,"title":"公共权限","children":[{"pid":425,"id":435,"title":"选择用户插件列表","children":[]},{"pid":425,"id":431,"title":"店员搜索门店列表","children":[]},{"pid":425,"id":426,"title":"地图KEY权限","children":[]}],"expand":true},{"pid":144,"id":302,"title":"核销订单","children":[{"pid":302,"id":441,"title":"核销订单数据","children":[]},{"pid":302,"id":440,"title":"核销订单列表","children":[]}],"expand":true},{"pid":144,"id":301,"title":"核销员","children":[{"pid":301,"id":433,"title":"附加权限","children":[{"pid":433,"id":439,"title":"删除店员","children":[]},{"pid":433,"id":438,"title":"编辑店员表单","children":[]},{"pid":433,"id":437,"title":"店员显示隐藏","children":[]},{"pid":433,"id":436,"title":"添加修改店员","children":[]},{"pid":433,"id":434,"title":"添加店员表单","children":[]}],"expand":true},{"pid":301,"id":432,"title":"店员列表","children":[]}],"expand":true},{"pid":144,"id":300,"title":"提货点","children":[{"pid":300,"id":424,"title":"附加权限","children":[{"pid":424,"id":430,"title":"删除门店","children":[]},{"pid":424,"id":429,"title":"门店详情","children":[]},{"pid":424,"id":428,"title":"设置门店隐藏显示","children":[]},{"pid":424,"id":427,"title":"添加编辑门店","children":[]},{"pid":424,"id":364,"title":"修改门店状态","children":[]}],"expand":true},{"pid":300,"id":363,"title":"门店列表展示","children":[]},{"pid":300,"id":362,"title":"门店数据","children":[]}],"expand":true}],"expand":true},{"pid":303,"id":304,"title":"物流配置","children":[]},{"pid":303,"id":230,"title":"运费模板","children":[{"pid":230,"id":457,"title":"附加权限","children":[{"pid":457,"id":639,"title":"删除运费模板","children":[]},{"pid":457,"id":638,"title":"获取运费模板详情","children":[]},{"pid":457,"id":460,"title":"删除运费模板","children":[]},{"pid":457,"id":459,"title":"保存或者修改运费模板","children":[]},{"pid":457,"id":458,"title":"运费模板城市数据","children":[]}],"expand":true},{"pid":230,"id":456,"title":"运费模板列表","children":[]}],"expand":true}],"expand":true},{"pid":12,"id":14,"title":"管理权限","children":[{"pid":14,"id":21,"title":"权限规则","children":[{"pid":21,"id":619,"title":"权限列表","children":[]},{"pid":21,"id":345,"title":"删除权限菜单","children":[]},{"pid":21,"id":344,"title":"修改权限状态","children":[]},{"pid":21,"id":341,"title":"修改权限","children":[{"pid":341,"id":343,"title":"修改权限","children":[]},{"pid":341,"id":342,"title":"编辑权限表单","children":[]}],"expand":true},{"pid":21,"id":338,"title":"添加规则","children":[{"pid":338,"id":346,"title":"添加子菜单","children":[]},{"pid":338,"id":340,"title":"添加权限","children":[]},{"pid":338,"id":339,"title":"添加权限表单","children":[]}],"expand":true}],"expand":true},{"pid":14,"id":20,"title":"管理员列表","children":[{"pid":20,"id":635,"title":"修改管理员状态","children":[]},{"pid":20,"id":610,"title":"管理员列表","children":[]},{"pid":20,"id":337,"title":"删除管理员","children":[]},{"pid":20,"id":334,"title":"编辑管理员","children":[{"pid":334,"id":336,"title":"修改管理员","children":[]},{"pid":334,"id":335,"title":"编辑管理员表单","children":[]}],"expand":true},{"pid":20,"id":331,"title":"添加管理员","children":[{"pid":331,"id":333,"title":"添加管理员","children":[]},{"pid":331,"id":332,"title":"添加管理员表单","children":[]}],"expand":true}],"expand":true},{"pid":14,"id":19,"title":"角色管理","children":[{"pid":19,"id":611,"title":"身份列表","children":[]},{"pid":19,"id":330,"title":"删除身份","children":[]},{"pid":19,"id":329,"title":"修改身份状态","children":[]},{"pid":19,"id":325,"title":"添加身份","children":[{"pid":325,"id":328,"title":"修改身份表单","children":[]},{"pid":325,"id":327,"title":"添加修改身份","children":[]},{"pid":325,"id":326,"title":"添加身份表单","children":[]}],"expand":true}],"expand":true}],"expand":true}],"expand":true},{"pid":0,"id":25,"title":"维护","children":[{"pid":25,"id":56,"title":"开发配置","children":[{"pid":56,"id":126,"title":"组合数据列表","children":[{"pid":126,"id":483,"title":"附加权限","children":[{"pid":483,"id":489,"title":"修改组合数据状态","children":[]},{"pid":483,"id":488,"title":"删除组合数据","children":[]},{"pid":483,"id":487,"title":"修改组合数据信息","children":[]},{"pid":483,"id":486,"title":"获取组合数据信息","children":[]},{"pid":483,"id":485,"title":"保存组合数据","children":[]},{"pid":483,"id":484,"title":"获取组合数据添加表单","children":[]}],"expand":true},{"pid":126,"id":482,"title":"组合数据列表","children":[]},{"pid":126,"id":481,"title":"组合数据列表表头","children":[]}],"expand":true},{"pid":56,"id":125,"title":"配置列表","children":[{"pid":125,"id":468,"title":"附加权限","children":[{"pid":468,"id":474,"title":"修改配置状态","children":[]},{"pid":468,"id":473,"title":"删除配置","children":[]},{"pid":468,"id":472,"title":"编辑配置分类","children":[]},{"pid":468,"id":471,"title":"编辑配置字段表单","children":[]},{"pid":468,"id":470,"title":"保存配置字段","children":[]},{"pid":468,"id":469,"title":"添加配置字段表单","children":[]}],"expand":true},{"pid":125,"id":467,"title":"配置列表展示","children":[]}],"expand":true},{"pid":56,"id":112,"title":"组合数据","children":[{"pid":112,"id":476,"title":"附加权限","children":[{"pid":476,"id":480,"title":"删除组合数据","children":[]},{"pid":476,"id":479,"title":"修改组合数据","children":[]},{"pid":476,"id":478,"title":"获取组合数据","children":[]},{"pid":476,"id":477,"title":"新增组合数据","children":[]}],"expand":true},{"pid":112,"id":475,"title":"组合数据列表","children":[]}],"expand":true},{"pid":56,"id":111,"title":"配置分类","children":[{"pid":111,"id":462,"title":"附加权限","children":[{"pid":462,"id":641,"title":"编辑配置分类","children":[{"pid":641,"id":642,"title":"获取编辑配置分类表单","children":[]},{"pid":641,"id":465,"title":"编辑配置分类","children":[]}],"expand":true},{"pid":462,"id":640,"title":"修改配置分类状态","children":[]},{"pid":462,"id":466,"title":"删除配置分类","children":[]},{"pid":462,"id":464,"title":"保存配置分类","children":[]},{"pid":462,"id":463,"title":"配置分类添加表单","children":[]}],"expand":true},{"pid":111,"id":461,"title":"配置分类列表","children":[]}],"expand":true}],"expand":true},{"pid":25,"id":65,"title":"安全维护","children":[{"pid":65,"id":57,"title":"刷新缓存","children":[{"pid":57,"id":491,"title":"清除日志","children":[]},{"pid":57,"id":490,"title":"清除缓存","children":[]}],"expand":true},{"pid":65,"id":67,"title":"数据备份","children":[{"pid":67,"id":499,"title":"附加权限","children":[{"pid":499,"id":505,"title":"备份下载","children":[]},{"pid":499,"id":504,"title":"删除数据库备份","children":[]},{"pid":499,"id":503,"title":"导入sql","children":[]},{"pid":499,"id":502,"title":"修复表","children":[]},{"pid":499,"id":501,"title":"优化表","children":[]},{"pid":499,"id":500,"title":"备份表","children":[]}],"expand":true},{"pid":67,"id":498,"title":"数据表详情","children":[]},{"pid":67,"id":497,"title":"数据库备份列表","children":[]},{"pid":67,"id":496,"title":"数据库列表","children":[]}],"expand":true},{"pid":65,"id":66,"title":"清除数据","children":[{"pid":66,"id":495,"title":"清除数据接口","children":[]}],"expand":true},{"pid":65,"id":64,"title":"文件校验","children":[{"pid":64,"id":494,"title":"文件校验列表","children":[]}],"expand":true},{"pid":65,"id":47,"title":"系统日志","children":[{"pid":47,"id":493,"title":"系统日志列表","children":[]},{"pid":47,"id":492,"title":"管理员搜索列表","children":[]}],"expand":true}],"expand":true},{"pid":25,"id":145,"title":"物流公司","children":[{"pid":145,"id":449,"title":"附加权限","children":[{"pid":449,"id":455,"title":"删除物流公司","children":[]},{"pid":449,"id":454,"title":"修改物流公司","children":[]},{"pid":449,"id":453,"title":"获取编辑物流公司表单","children":[]},{"pid":449,"id":452,"title":"保存物流公司","children":[]},{"pid":449,"id":451,"title":"获取添加物流公司表单","children":[]},{"pid":449,"id":450,"title":"修改物流公司状态","children":[]}],"expand":true},{"pid":145,"id":448,"title":"物流公司列表","children":[]}],"expand":true},{"pid":25,"id":229,"title":"城市数据","children":[{"pid":229,"id":674,"title":"清除城市缓存","children":[]},{"pid":229,"id":443,"title":"附加权限","children":[{"pid":443,"id":447,"title":"删除城市数据","children":[]},{"pid":443,"id":446,"title":"获取修改城市表单","children":[]},{"pid":443,"id":445,"title":"保存修改城市数据","children":[]},{"pid":443,"id":444,"title":"获取添加城市表单","children":[]}],"expand":true},{"pid":229,"id":442,"title":"城市数据列表","children":[]}],"expand":true},{"pid":25,"id":655,"title":"在线升级","children":[]},{"pid":25,"id":636,"title":"其他权限","children":[{"pid":636,"id":637,"title":"消息提醒","children":[]}],"expand":true},{"pid":25,"id":605,"title":"商业授权","children":[{"pid":605,"id":608,"title":"商业授权","children":[]}],"expand":true},{"pid":25,"id":587,"title":"个人中心","children":[{"pid":587,"id":607,"title":"修改密码","children":[]}],"expand":true},{"pid":25,"id":166,"title":"日志","children":[]}],"expand":true}]}}';
}

/**
 * @description 设置 客服管理 -- 列表
 * @param {Object} param params {Object} 传值参数
 */
export function kefuListApi(params) {
  return request({
    url: `app/wechat/kefu`,
    method: "get",
    params
  });
}

/**
 * @description 设置 客服管理 -- 选择用户
 *  @param {Object} param params {Object} 传值参数
 */
export function kefucreateApi(params) {
  return request({
    url: `app/wechat/kefu/create`,
    method: "get",
    params
  });
}

/**
 * @description 设置 客服管理 -- 添加客服
 *  @param {Object} param params {Object} 传值参数
 */
export function kefuaddApi() {
  return request({
    url: `app/wechat/kefu/add`,
    method: "get"
  });
}

/**
 * @description 设置 客服管理 -- 添加客服保存
 *  @param {Object} param params {Object} 传值参数
 */
export function kefuAddApi(data) {
  return request({
    url: `app/wechat/kefu`,
    method: "post",
    data
  });
}

/**
 * @description 设置 客服管理 -- 修改状态
 *  @param {Object} param data {Object} 传值参数
 */
export function kefusetStatusApi(data) {
  return request({
    url: `app/wechat/kefu/set_status/${data.id}/${data.status}`,
    method: "PUT"
  });
}

/**
 * @description 设置 渠道码 -- 修改状态
 *  @param {Object} param data {Object} 传值参数
 */
export function wechatQrcodeStatusApi(data) {
  return request({
    url: `app/wechat_qrcode/set_status/${data.id}/${data.status}`,
    method: "PUT"
  });
}

/**
 * @description 获取渠道码用户列表
 *  @param {Object} param data {Object} 传值参数
 */
export function getUserList(params) {
  return request({
    url: `app/wechat_qrcode/user_list/${params.id}`,
    method: "get",
    params
  });
}

/**
 * @description 设置 渠道码编辑详情获取
 *  @param {Object} param data {Object} 传值参数
 */
export function wechatQrcodeDetail(id) {
  return request({
    url: `app/wechat_qrcode/info/${id}`,
    method: "get"
  });
}

/**
 * @description  渠道码制作--保存
 */
export function wechatQrcodeSaveApi(id, data) {
  return request({
    url: `app/wechat_qrcode/save/${id}`,
    method: "post",
    data
  });
}

/**
 * @description 设置 客服管理 -- 编辑表单
 *  @param {Number} param id {Number} 客服id
 */
export function kefuEditApi(id) {
  return request({
    url: `app/wechat/kefu/${id}/edit`,
    method: "GET"
  });
}

/**
 * @description 设置 客服管理 -- 聊天记录列表
 *  @param {Number} param id {Number} 客服id
 *  @param {Object} param params {Object} 传参数
 */
export function kefuRecordApi(params, id) {
  return request({
    url: `app/wechat/kefu/record/${id}`,
    method: "GET",
    params
  });
}

/**
 * @description 设置 客服管理 -- 查看对话列表
 *  @param {Object} param params {Object} 传参数
 */
export function kefuChatlistApi(params) {
  return request({
    url: `app/wechat/kefu/chat_list`,
    method: "GET",
    params
  });
}

/**
 * @description 短信设置 -- 查看是否登录
 */
export function isLoginApi() {
  return request({
    url: `notify/sms/is_login`,
    method: "GET"
  });
}

/**
 * @description 短信设置 -- 退出登录
 */
export function logoutApi() {
  return request({
    url: `notify/sms/logout`,
    method: "GET"
  });
}

/**
 * @description 设置 城市数据 -- 列表
 *  @param {Object} param data {Object} 传值参数
 */
export function cityListApi(id) {
  return request({
    url: `setting/city/list/${id}`,
    method: "get"
  });
}

/**
 * @description 设置 城市添加 -- 表单
 *  @param {Object} param data {Object} 传值参数
 */
export function cityAddApi(id) {
  return request({
    url: `setting/city/add/${id}`,
    method: "get"
  });
}

/**
 * @description 设置 城市修改 -- 表单
 *  @param {Object} param data {Object} 传值参数
 */
export function cityApi(id) {
  return request({
    url: `setting/city/${id}/edit`,
    method: "get"
  });
}

/**
 * @description 设置 运费模板 -- 列表
 *  @param {Object} param data {Object} 传值参数
 */
export function templatesApi(data) {
  return request({
    url: `setting/shipping_templates/list`,
    method: "get",
    params: data
  });
}

/**
 * @description 设置 运费模板 -- 城市数据
 */
export function templatesCityListApi(data) {
  return request({
    url: `setting/shipping_templates/city_list`,
    method: "get"
  });
}

/**
 * @description 设置 运费模板 -- 提交修改表单；
 */
export function templatesSaveApi(id, data) {
  return request({
    url: `setting/shipping_templates/save/${id}`,
    method: "post",
    data
  });
}

/**
 * @description 设置 运费模板 -- 提交修改表单；
 */
export function shipTemplatesApi(id) {
  return request({
    url: `setting/shipping_templates/${id}/edit`,
    method: "get"
  });
}

/**
 * @description 门店设置 -- 门店列表分类数量；
 */
export function storeGetHeaderApi() {
  return request({
    url: `merchant/store/get_header`,
    method: "get"
  });
}

/**
 * @description 门店设置 -- 门店列表；
 */
export function merchantStoreApi(data) {
  return request({
    url: `merchant/store`,
    method: "get",
    params: data
  });
}

/**
 * @description 门店设置 -- 门店设置；
 */
export function storeSetShowApi(id, is_show) {
  return request({
    url: `merchant/store/set_show/${id}/${is_show}`,
    method: "put"
  });
}

/**
 * @description 门店设置 -- 门店修改信息；
 */
export function storeGetInfoApi(id) {
  return request({
    url: `merchant/store/get_info/${id}`,
    method: "get"
  });
}

/**
 * @description 门店设置 -- 店员列表；
 */
export function storeStaffApi(data) {
  return request({
    url: `merchant/store_staff`,
    method: "get",
    params: data
  });
}

/**
 * @description 门店设置 -- 新增店员；
 */
export function storeStaffCreateApi() {
  return request({
    url: `merchant/store_staff/create`,
    method: "get"
  });
}

/**
 * @description 门店设置 -- 新增店员；
 */
export function storeStaffEditApi(id) {
  return request({
    url: `merchant/store_staff/${id}/edit`,
    method: "get"
  });
}

/**
 * @description 店员设置 -- 店员设置显示隐藏；
 */
export function storeStaffSetShowApi(id, is_show) {
  return request({
    url: `merchant/store_staff/set_show/${id}/${is_show}`,
    method: "put"
  });
}

/**
 * @description 订单设置 -- 核销订单列表；
 */
export function verifyOrderApi(data) {
  return request({
    url: `merchant/verify_order`,
    method: "get",
    params: data
  });
}

/**
 * @description 订单设置 -- 核销订单头部；
 */
export function verifySpreadInfoApi(uid) {
  return request({
    url: `merchant/verify/spread_info/${uid}`,
    method: "get"
  });
}

/**
 * 获取店员搜索门店列表
 */
export function merchantStoreListApi() {
  return request({
    url: `merchant/store_list`,
    method: "get"
  });
}

/**
 * 清除城市数据缓存
 */
export function cityCleanCacheApi() {
  return request({
    url: `setting/city/clean_cache`,
    method: "get"
  });
}

/**
 *储存配置-获取云储存配置头
 */
export function storageConfigApi() {
  return request({
    url: `system/config/storage/config`,
    method: "get"
  });
}

/**
 *储存配置-获取云储存配置头
 */
export function storageSwitchApi(data) {
  return request({
    url: `system/config/storage/config`,
    method: "post",
    data
  });
}

/**
 * @description 储存配置-获取云储存配置表单
 */
export function addConfigApi(type) {
  return request({
    url: `system/config/storage/form/${type}`,
    method: "get"
  });
}

/**
 * @description 储存配置-获取云存储创建表单
 */
export function addStorageApi(type) {
  return request({
    url: `system/config/storage/create/${type}`,
    method: "get"
  });
}

/**
 * @description 储存配置-获取云存储列表
 */
export function storageListApi(data) {
  return request({
    url: `system/config/storage`,
    method: "get",
    params: data
  });
}

/**
 * @description 储存配置-同步空间
 */
export function storageSynchApi(type) {
  return request({
    url: `system/config/storage/synch/${type}`,
    method: "put"
  });
}

/**
 * @description 储存配置-修改状态
 */
export function storageStatusApi(id) {
  return request({
    url: `system/config/storage/status/${id}`,
    method: "put"
  });
}

/**
 * @description 储存配置-修改空间域名
 */
export function editStorageApi(id) {
  return request({
    url: `system/config/storage/domain/${id}`,
    method: "get"
  });
}

/**
 * @description 储存配置-获取缩略图
 */
export function positionInfoApi() {
  return request({
    url: `setting/config_list/31`,
    method: "get"
  });
}

/**
 * @description 储存配置-保存缩略图
 */
export function positionPostApi(data) {
  return request({
    url: `setting/config/save_basics`,
    method: "post",
    data
  });
}

/**
 * @description 储存配置切换
 */
export function saveType(type) {
  return request({
    url: `system/config/storage/save_type/${type}`,
    method: "get"
  });
}
